|
![](/i/fill.gif) |
Christian Froeschlin <chr### [at] chrfr de> wrote:
> Ah, but everything you #declare is a variable. The value
> of the variable P_Cloth just happens to be a pigment. There's
> nothing special about this variable ...
>
> Dave Blandston wrote:
>
> > The restriction would be that once "P_Cloth" is defined as a
> > pigment it must remain a pigment.
>
> ... which is why this is also incorrect. Feel free
> to follow it up with
>
> #declare P_Cloth = 5;
>
> or
>
> #declare P_Cloth = sphere {0,1}
>
> or even
>
> #declare P_Cloth = sphere {0,1 pigment {P_Cloth}}
>
> The reason you can use P_Cloth to define P_Cloth is that
> the right hand side of an assignment is processed first,
> then the result is assigned to the left hand side.
Oh yes, my mistake! Thanks!
Regards,
Dave Blandston
Post a reply to this message
|
![](/i/fill.gif) |